#include <stdio.h>
#include <netinet/in.h>

int main(int argc, char **argv)
{
	char *hostname;
	//struct hostent host;
	struct in_addr ip;

	if (argc != 2){
		printf("I need an ip\n");
		return -1;
	}

	//hostname = argv[1];

	//memcpy(&host,gethostbyname(hostname), sizeof(struct hostent));
	//memcpy(&ip.s_addr, host.h_addr,sizeof(ip.s_addr));
	
	inet_aton(argv[1], &ip);
	return check_connec_ping(ip);

}
